#include "Connection.h"

Connection::Connection(const std::string &host, unsigned short port) :
_sock(_io, tcp::v4()), _host(host), _dest(boost::asio::ip::address::from_string(host), port)
{
	_sock.connect(_dest, ecode);
	_sock.close();
}

void Connection::ThreadMain()
{
	return;
}

void Connection::run()
{
	_io.run();
}